﻿NAMFox.ns(function() { with (NAMFox) {

name("Markup Translation Static Tests");

//////////////////////////////////////////////
// Helper methods
//////////////////////////////////////////////

function markupTest(name, html, expected) {
    asyncTest(name, function() {
        MarkupTranslator._translate(MarkupTranslator, { translationRules: NAMFox.translationRules }, html, markupReceived);
    });

    function markupReceived(actual) {
        equals(expected, actual, "The actual translation did not match the expected markup result.");
        start();
    };
}

//////////////////////////////////////////////
// Test Cases
//////////////////////////////////////////////

markupTest("HR Rule", "<hr />", "[hr]");

markupTest("h3", "<h3>Test</h3>", "!!!Test");

}});